package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductCollectService;
import com.gidgabs.modules.dao.TbProductCollectDao;
import com.gidgabs.modules.entity.TbProductCollectEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbProductCollectServiceImpl implements TbProductCollectService {
	@Autowired
	private TbProductCollectDao productCollectDao;
	
	@Override
	public TbProductCollectEntity queryObject(Integer id){
		return productCollectDao.queryObject(id);
	}
	
	@Override
	public List<TbProductCollectEntity> queryList(Map<String, Object> map){
		return productCollectDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return productCollectDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductCollectEntity productCollect){
		productCollectDao.save(productCollect);
	}
	
	@Override
	public void update(TbProductCollectEntity productCollect){
		productCollectDao.update(productCollect);
	}
	
	@Override
	public void delete(Integer id){
		productCollectDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		productCollectDao.deleteBatch(ids);
	}

	@Override
	public int queryCount(TbProductCollectEntity tbProductCollectEntity) {
		return productCollectDao.queryCount(tbProductCollectEntity);
	}

}
